package lero.service;

import lero.pojo.Admin;
import lero.pojo.Role;
import lero.vo.RoleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Roleistrator on 2018/7/4.
 */
public interface RoleServiceI {

    void insert(Role role);

    List<Role> select(RoleVo vo);

    Role selectOne(int id);

    void  delete(int id);

    void  deleteMany(int[] ids);

    void  update(Role role);

    List<Admin> selectAdminNotInCurrentRole(int id);

    List<Admin> selectAdminInCurrentRole(int id);

    List<Map> selectAllAdmin();

    void saveAdminIntoCurrentRole(int[] ids,int id);

    void deleteAdminByCurrentRole(int roleId);

}
